﻿using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace WordStat.WordExceptions
{
    [Serializable]
    public class WordExceptionRecordContainer
    {
        private List<WordExceptionRecord> _records = new List<WordExceptionRecord>();
        [XmlIgnore]
        public List<WordExceptionRecord> Records
        {
            get { return _records; }
            set { _records = value; }
        }

        [XmlArray("Records")]
        public WordExceptionRecord[] RecordArr
        {
            get { return _records.ToArray(); }
            set { _records.AddRange(value); }
        }
    }
}
